<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//Dtd HTML 4.01 transitional//EN" "http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../../common/common.jsp" %>
<link href="<%=request.getContextPath() %>/css/admin/admin.css" type="text/css" rel="stylesheet">
<title>Insert title here</title>
<script type="text/javascript">
	function expand(el)
	{
		childObj = document.getElementById("child" + el);

		if (childObj.style.display == 'none')
		{
			childObj.style.display = 'block';
		}
		else
		{
			childObj.style.display = 'none';
		}
		return;
	}
</script>
</head>
<body>
	<table height="100%" cellSpacing=0 cellPadding=0 width=170
		background="<%=request.getContextPath() %>/images/pages/admin/menu_bg.jpg" border=0>
		<tr>
			<td vAlign=top align=middle>
				<table cellSpacing=0 cellPadding=0 width="100%" border=0>
					<tr>
						<td height=10></td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background="<%=request.getContextPath() %>/images/pages/admin/menu_bt.jpg"><a
							class="menuParent" onclick="expand(1)" href="javascript:void(0);">静态数据</a>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id="child1" style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/varietyManage.action" target="mainFrame">花材管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/colorManage.action" target="mainFrame">颜色管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/purposeManage.action" target="mainFrame">用途管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/festivalManage.action" target="mainFrame">节日管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/targetManage.action" target="mainFrame">对象管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/flowerFloridManage.action" target="mainFrame">花语管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/flowerCountManage.action" target="mainFrame">支数管理</a>
						</td>
					</tr>
					<tr height=4>
						<td colSpan=2></td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background="<%=request.getContextPath() %>/images/pages/admin/menu_bt.jpg">
						<a class="menuParent" onclick="expand(2)" href="javascript:void(0);">产商管理</a>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id="child2" style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/productManage.action" target="mainFrame">产品管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/goodsAdd.action" target="mainFrame">商品添加</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/goodsManage.action" target="mainFrame">商品管理</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/saleManage.action" target="mainFrame">促销管理</a>
						</td>
					</tr>
					<tr height=4>
						<td colSpan=2></td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background="<%=request.getContextPath() %>/images/pages/admin/menu_bt.jpg">
						<a class="menuParent" onclick="expand(3)" href="javascript:void(0);">订单管理</a>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id="child3" style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/ordersManage.action" target="mainFrame">订单管理</a>
						</td>
					</tr>
					<tr height=4>
						<td colSpan=2></td>
					</tr>
				</table>
<%-- 				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background="<%=request.getContextPath() %>/images/pages/admin/menu_bt.jpg">
						<a class="menuParent" onclick="expand(4)" href="javascript:void(0);">评论管理</a>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id="child4" style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/ordersManage.action" target="mainFrame">评论管理</a>
						</td>
					</tr>
					<tr height=4>
						<td colSpan=2></td>
					</tr>
				</table> --%>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background="<%=request.getContextPath() %>/images/pages/admin/menu_bt.jpg"><a
							class="menuParent" onclick="expand(5)" href="javascript:void(0);">用户管理</a>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id="child5" style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/userManage.action" target="mainFrame">用户管理</a>
						</td>
					</tr>
					<tr height=4>
						<td colSpan=2></td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background="<%=request.getContextPath() %>/images/pages/admin/menu_bt.jpg">
							<a class="menuParent" onclick="expand(6)" href="javascript:void(0);">个人管理</a>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id="child6" style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" href="<%=request.getContextPath() %>/admin/adminManage.action" target="mainFrame">修改口令</a>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30>
							<img height=9 src="<%=request.getContextPath() %>/images/pages/admin/menu_icon.gif" width=9>
						</td>
						<td>
							<a class="menuChild" onclick="doLogout()" href="javascript: void(0)" target="_top">退出系统</a>
						</td>
					</tr>
				</table>
			</td>
			<td width=1 bgColor=#d1e6f7></td>
		</tr>
	</table>
</body>

<script type="text/javascript">
	function doLogout() {
		if (confirm('确定要退出吗？')) {
			$.ajax({
				url: '<%=request.getContextPath() %>/admin/ajaxDoLogoutADM.action',
				data: null,
				type: 'post',
				dataType: 'json',
				success: ajaxDoLogoutADM_Callback
			});
		}
	}
	function ajaxDoLogoutADM_Callback(res) {
		var rs = res.result;
		if(rs == 0) {
			alert("登出成功!");
			location.href = '<%=request.getContextPath() %>/admin/loginInitADM.action';
		}
	}
</script>

</html>